
import {request} from "@/apis/request.js"


// 获取热门房源 
export const $_toplist=()=>request("/toplist")

// 获取推荐房源 gethouse/{page页数}/{pagesize条数}
export const $_gethouse=(data)=>request("/gethouse",data)

// 获取城市列表
export const $_citys=()=>request("/citys","get")

// 获取客服聊天默认问题
export const $_initquestion=()=>request("/initquestion","get")

// 获取GET 发送用户问题获取答案  /question/{question问题}
export const $_question=(data)=>request("/question",data)


// 获取搜索房源(带模糊查询)  /search/{                              searchkey搜搜关键字}
export const $_search=(data)=>request("/search",data)


// 获取获取热点文章列表  {page页数}/{pagesize条数}
export const $_getarticlelist=(data)=>request("/getarticlelist",data)


// 根据文章id获取详情  /getarticleinfo/{id}
export const $_getarticleinfo=(data)=>request("/getarticleinfo",data)